<!--在页面上实时显示输入框的内容-->
<script setup>
import {ref} from "vue";
let inputvalue =ref("夫唯不争故天下莫能与之争")
const btnEvent = () =>{
  console.info(inputvalue)
}
</script>
<template>
  <div>
    <input  type="text" v-model="inputvalue">
    <br>
    <button id="d1" @:click="btnEvent">提交
    </button>
    输入框的值:{{inputvalue}}


  </div>
</template>

<style scoped></style>
